wayland: Check actual impl type in transient loop
authorOlivier Fourdan <ofourdan@redhat.com>
Mon, 29 Feb 2016 09:14:56 +0000 (10:14 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 2 Mar 2016 03:18:32 +0000 (22:18 -0500)
commitde383809f668ae5670777f2219532c66bddec72a
treeb6a36080d608e786698c455700c87d03261f6edd
parent9e2207b2b0d1a8c5bdca8f56f370750b4c791204
wayland: Check actual impl type in transient loop

If the parent of a transient is not a native Wayland window (e.g.
offscreen window), the transient loop check will crash.

Check for the actual type in the transient loop check and do not assume
the parent is necessarily Wayland native.

bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=761156

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
gdk/wayland/gdkwindow-wayland.c